<ul id="nav">
<%
	String [] url = {"index.html", "register.rw","programme.html","speaker.html","organisers.html","contact_us.html"};
	String [] names = {"Home","Registration","Programme","Speakers","Organisers","Contact Us"};
	
	String tag="<li><a href=\"%s\"%s>%s</a>%s</li>";
	
	String serverPath ="";

	serverPath = (String)request.getAttribute("javax.servlet.forward.request_uri");//request.getRequestURL();
	if("programme1.html".equalsIgnoreCase(serverPath))
		serverPath = "programme.html";
	//System.out.println(serverPath);

	String id = "", submenu="<ul class='submenu'><li><a href=\"programme.html\">Full Conference</a></li><li><a href=\"programme1.html\">Post-Conference Workshops</a></li></ul>";
	for(int i=0; i < names.length; ++i) {
		if(i==0 && serverPath.endsWith("/")) {
			id = " id='selected_menu'";
		} else if(serverPath.endsWith(url[i])) {
			id = " id='selected_menu'";
		} else {
			id = "";			
		}

		
		out.print(String.format(tag, url[i], id, names[i], "Programme".equalsIgnoreCase(names[i])?submenu:""));
	}
%>
<%--
<li><a href="default.asp">Home</a></li>
<li><a href="news.asp">Registration</a></li>
<li><a href="contact.asp">Programme</a></li>
<li><a href="about.asp">Speakers</a></li>
<li><a href="about.asp">Organisers</a></li>
<li><a href="about.asp">Contact Us</a></li>
 --%>
 </ul>
